#include "List.h"

//TestList1()
//{
//	LTNode* plist = LTInit();
//	LTPushBack(plist, 1);
//	LTPushBack(plist, 2);
//	LTPushBack(plist, 3);
//	LTPushBack(plist, 4);
//	LTPushBack(plist, 5);
//	LTPrint(plist);
//	LTPopBack(plist);
//	LTPopBack(plist);
//	LTPrint(plist);
//	LTPushFront(plist, 1000);
//	LTPushFront(plist, 2000);
//	LTPushFront(plist, 3000);
//	LTPushFront(plist, 4000);
//	LTPushFront(plist, 5000);
//	LTPrint(plist);
//	LTPopFront(plist);
//	LTPopFront(plist);
//	LTPopFront(plist);
//	LTPrint(plist);
//	//LTSize(plist);
//	printf("%d\n", LTSize(plist));
//
//}



TestList2()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPrint(plist);
	printf("%d\n", LTFind(plist, 3)->data);
	LTDestory(plist);
	plist = NULL;
}

int main()
{
	TestList2();
	return 0;
}